package Stream;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.stream.Stream;

public class StreamDemo02 {
    public static void main(String[] args) {
        List<String> list = new ArrayList<>();
        Stream<String> listStream=list.stream();

        Map<String, Integer> map = new HashMap<>();
        Stream<String> keyStream=map.keySet().stream();
        Stream<Integer> valueStream=map.values().stream();
        Stream<Map.Entry<String,Integer>> entryStream=map.entrySet().stream();
    }
}
